# -*- coding: utf-8 -*-

def _T_(msgid, lang):
    return lang_table[lang][msgid]

lang_table = {
"en-us":
{
'no_auth'  : u'You are not authorized!',
'no_owner' : u'You are not Owner of this group',
'owner_cannot_quit' : u'The Owner can not quit!',
'quit_group': u"You have quit group %s ",
'items_paid': u"%d items have been paid",
'need_desc': u'Description required',
'income_added': u'One income item added, %(money).2f by %(user)s',
'payout_added': u'One payout item added, %(money).2f by %(user)s',
'user_deleted': u"User %s has been deleted from this group",
'admin_degraded': u"Admin %s has been degraded to User",
'user_upgraded' : u"User %s has been upgraded to Admin",
'user_info_updated' : u"Profile of User %s has been updated",
'profile' : u'Profile',
'save' : u'Save',
'group_rename' : u'Group %s exists, pls choose another name',
'group_created' : u"New Group %(groupname)s has been created by %(username)s",
'create_group' : u"Create Group",
'user_exist' : u"User %s exists",
'user_rename' : u'Username %s is not available, pls choose another name',
'welcome_newuser' : u"Welcome new User %s",
'join_now' : u"Join Now",
'pls_join' : u"Pls join ExpensesBook first",
'already_in_group' : u"You are already in Group %s, do not apply again",
'awaiting' : u"You have been in awaiting list of Group %s, pls wait approval",
'error_join_group' : u"Error: Can not join Group %s, pls contact admin",
'already_in_awaiting' : u'You are already in awaiting list of Group %s, pls wait approval',
'no_group' : u'There is No Group %s!',
'private_group' : u'Can not join Private Group',
'incomes_header' : u'Group,User,Date,Money,Details,Submitter',
'payouts_header' : u'Group,User,Date,Money,Details,Submitter,Paid?,Approver',
'summary_mail_sent' : u'Summary mail has been sent to ',
'summary_mail_subject' : u"[ExpensesBook]Summary of Group %s",
'summary_mail_body' : u"""
This month (%s) total payout: %.2f\n
There are %d items not paid! Total %.2f\n
Total Income:        %.2f\n
Paid payout:         %.2f\n
--------------------------\n
Remain:              %.2f\n
Not Paid payout:     %.2f\n
--------------------------\n
Net Balance:         %.2f\n
See %s for more information.
""" ,
},

"zh-cn":
{
'no_auth': u'你没有权限!',
'no_owner' : u'你想干嘛?只有创建者才能这样做',
'owner_cannot_quit' : u'创建者不能退出',
'quit_group': u"你已经退出了账本 %s ",
'items_paid': u"%d条记录已报销",
'need_desc': u'必须输入备注',
'income_added': u'已成功为 %(user)s 添加一条收入记录, %(money).2f元',
'payout_added': u'已成功为 %(user)s 添加一条支出记录, %(money).2f元',
'user_deleted': u"用户 %s 已被从账本删除",
'admin_degraded': u"管理员 %s 已降为普通用户",
'user_upgraded' : u"用户 %s 已经提升为管理员",
'user_info_updated' : u"用户 %s 数据已更新",
'profile' : u'个人设置',
'save' : u"保存",
'group_rename' : u"账本 %s 已经存在,请重新取名!",
'group_created' : u"新账本 %(groupname)s 已由 %(username)s 创建",
'create_group' : u"创建账本",
'user_exist' : u"%s 已经在用户列表中!",
'user_rename' : u"用户名 %s 已经存在! 请重新取名!",
'welcome_newuser' : u"欢迎新用户 %s 加入",
'join_now' : u"我要加入",
'pls_join' : u"请先加入本网站",
'already_in_group' : u"你已经在 %s 这个账本中,请不要重复加入.",
'awaiting' : u"你已经加入账本 %s 的待批准列表,请等待管理员批准",
'error_join_group' : u"Error:不能加入 %s 这个账本!请联系管理员",
'already_in_awaiting' : u'你已经在账本 %s 的待批准列表中,请等待管理员批准',
'no_group' : u'账本 %s 不存在!',
'private_group' : u'不能加入私人账本!',
'incomes_header' : u'账本,用户,日期,金额,备注,提交者',
'payouts_header' : u'账本,用户,日期,金额,备注,提交者,已报销?,批准者',
'summary_mail_sent' : u'总计邮件已发送给 ',
'summary_mail_subject' : u"[ExpensesBook]账本 %s 的总计",
'summary_mail_body' : u"""
本月 (%s) 总消费: %.2f 元\n
共有 %d 笔记录还未报销! 共 %.2f 元\n
总收入:            %.2f\n
已报销支出:       %.2f\n
--------------------------\n
余额:             %.2f\n
未报销支出:       %.2f\n
--------------------------\n
净余额:           %.2f\n
详细信息请访问 %s
""" ,
},              
              
}



